import i18n from "../../i18n"
export let validatePassword = () => {
    return (rule, value, callback) => {
        if (value.length < 6) {
            callback(
                callback(new Error(i18n.t('msg.login.passwordRule')))
            )
        } else {
            callback()
        }
    }
}